#ifndef INTERSECTION_H
#define INTERSECTION_H

#include <vector>
#include "point.h"
#include "segment.h"

struct IntersectPoint
{
    Point point;
    std::vector<int> segment_indexs;
};

class Intersection
{
public:
    static std::vector<IntersectPoint> FindIntersection(const std::vector<Segment *> &segments);
};

#endif // INTERSECTION_H
